package com.csj.DesignPattern.spring.example.service.impl;


import com.csj.DesignPattern.spring.example.dao.UserDao;
import com.csj.DesignPattern.spring.example.service.UserService;

public class UserServiceImpl implements UserService {

    public UserServiceImpl() {
        System.out.println("UserServiceImpl constructor");
    }

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save() {
        System.out.println("UserService save");
        userDao.add();
    }
}
